package com.schoolcloud.files.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolcloud.files.entity.FileUploadScene;
import com.schoolcloud.files.service.FileUploadSceneService;
import com.schoolcloud.files.mapper.FileUploadSceneMapper;
import org.springframework.stereotype.Service;

/**
* @author hongmizfb
* @description 针对表【file_upload_scene(文件上传场景配置表)】的数据库操作Service实现
* @createDate 2025-07-20 09:31:23
*/
@Service
public class FileUploadSceneServiceImpl extends ServiceImpl<FileUploadSceneMapper, FileUploadScene>
    implements FileUploadSceneService{

    @Override
    public FileUploadScene getByCode(String sceneName) {
       return lambdaQuery().eq(FileUploadScene::getSceneCode, sceneName).one();
    }

    @Override
    public FileUploadScene getBySceneCode(String sceneCode) {
        return lambdaQuery().eq(FileUploadScene::getSceneCode, sceneCode).one();
    }
}




